
// src/utils/stripe.js
import { loadStripe } from '@stripe/stripe-js';

let stripePromise = null;

export const getStripe = async (publicKey) => {
  if (!stripePromise) {
    stripePromise = loadStripe(publicKey);
  }
  return stripePromise;
};